 
 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>天机后台管理系统</title>
<meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  
  <link rel="stylesheet" href="__TPLPATH__/Public/layui/admin/layui.css"  media="all">
  <link rel="stylesheet" href="__TPLPATH__/Public/layui/admin/global.css"  media="all">
  
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header header header-demo">
  <div class="layui-main">
    <a class="logo" href=" " tppabs="http://www.layui.com/">
      <img src="__TPLPATH__/Public/layui/images/logo-1.png" alt="layui">
    </a>
    <ul class="layui-nav">
      <li class="layui-nav-item ">
        <a href="/doc/">文档</a>
      </li>
      <li class="layui-nav-item layui-this">
        <a href="/demo/">演示</a>
      </li>
      
      <li class="layui-nav-item">
        <a href="http://fly.layui.com/" target="_blank">社区</a>
      </li>
      <li class="layui-nav-item site-nav-layim">
        <a href="http://layim.layui.com/" target="_blank">LayIM</a>
      </li>
    <span class="layui-nav-bar"></span>></span></ul>
  </div>
</div>
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <div class="user-looklog" style="padding-bottom:20px;">
        <h3>用户信息  USER INFO</h3>
        <div></div>

        <div class="user_info" >
          <p>{$_SESSION['user']['username']}</p>
          <p><button class="layui-btn layui-btn-primary layui-btn-mini">个人设置</button></p>
          <p><button class="layui-btn layui-btn-mini layui-btn-normal" href="{:U('Admin/Login/logout')}">退出登录</button></p>
        
        </div>
        
      <span>
          <a href="{:U('Admin/Index/index')}">
            <img src="__ROOT__{$_SESSION['user']['avatar']}">

            <cite>用户ID:{$user_info['id']}</cite>
            <i>{$user_info['register_time']|date="Y-m-d H:i",###}</i>
          </a>
          
        </span>
        </div>
<ul class="layui-nav layui-nav-tree site-demo-nav">
  
  <foreach name="data" item="v">
      <empty name="v['_data']">
        <li class="layui-nav-item">
          <a href="">{$v['name']}</a>
          <i class="layui-icon" style="top: 1px; font-size: 18px;"></i>
        </li>
         <else />
         <li class="layui-nav-item">
          <a href="javascript:;">{$v['name']}</a>
            <dl class="layui-nav-child">
              <foreach name="v['_data']" item="n">
                  <dd>
                    <a href="{:U($n['mca'])}" >
                    <i class="layui-icon" style="top: 1px; font-size: 18px;">&#xe641;
                    </i><cite>{$n['name']}</cite>
                  </a>
                  </dd>
              </foreach>
            </dl>
         </li>
      </empty>
  </foreach>

  <li class="layui-nav-item" style="height: 30px; text-align: center"></li>
<span class="layui-nav-bar" style="height: 0px; top: 204.5px; opacity: 0; "></span>
</ul>
  </div>
</div>

<div class="layui-tab layui-tab-brief" lay-filter="demoTitle">


    <ul class="layui-tab-title site-demo-title">
      
      <li class="layui-this">*_*</li>
      
    </ul>
    <div class="layui-body layui-tab-content site-demo site-demo-body">
      
      <div class="layui-tab-item layui-show">
          
        <div class="layui-main">
          <div id="LAY_preview">
            <div id="show_content"></div>
             
          </div>

        </div>
      </div>

    </div>
  </div>

  <div class="layui-footer footer footer-demo">

  <div class="layui-main">
    <div class="footer">
  <p><a href="http://fly.layui.com/">Fly社区</a> 2016 &copy; <a href="http://www.layui.com/">layui.com</a></p>
  <p>
    <a href="http://fly.layui.com/auth/get" target="_blank">产品授权</a>
    <a href="http://fly.layui.com/jie/3147.html" target="_blank">VIP说明</a>
    <a href="http://www.layui.com/" target="_blank">商务合作</a>
    <a href="http://weibo.com/SentsinXu" target="_blank" rel="nofollow">微博</a>
    <a href="http://fly.layui.com/jie/2461.html" target="_blank">微信公众号</a>
  </p>
</div>  
    
  </div>
</div>

<div class="site-tree-mobile layui-hide">
  <i class="layui-icon">&#xe602;</i>
</div>
<div class="site-mobile-shade"></div>
<script src="__TPLPATH__/Public/layui/admin/layui.js" tppabs="http://res.layui.com/layui/build/layui.js?t=1479330396824" charset="utf-8"></script>
<script>
layui.config({
  base: '__TPLPATH__/Public/layui/admin/'
  ,version: ''
}).use('global');
 
window.global = {
  preview: function(){
    var preview = document.getElementById('LAY_preview');
    return preview ? preview.innerHTML : '';
  }()
};
</script>
</div>
</body>
</html>